.chart-mode {
  display: flex;
  justify-content: space-between;
  height: 500px;
  min-height: 500px;
  margin-top: 12px;
  overflow: hidden;
  border-top: 1px solid #e5e9f2;
  &-sub_title {
    display: block;
    padding: 8px 16px;
    color: #475669;
    font-weight: bold;
    background-color: #f9fafc;
    border-bottom: 1px solid #e5e9f2;
  }
  &-canvas {
    position: relative;
    width: calc(100% - 250px);
    & .download-button {
      position: absolute;
      top: 2px;
      right: 0;
      z-index: 2;
      font-size: 12px;
    }
    &.full-width {
      width: 100%;
    }
  }
  & .hidden {
    & .chart-mode-settings-close {
      left: -35px;
      animation: leave 0.35s linear;
    }
  }
  & .chart-mode-settings-close {
    position: absolute;
    top: 50%;
    left: -15px;
    z-index: 9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    color: #fff;
    font-size: 12px;
    background-color: #607290;
    border-radius: 100%;
    box-shadow: 0 2px 8px 0 rgba(45, 100, 188, 0.1);
    cursor: pointer;
    transition: all 0.3s;
    animation: enter 0.25s linear;
    &:hover {
      background-color: #687c9f;
      box-shadow: 0 7px 14px 0 rgba(153, 168, 192, 0.5), 0 3px 6px 0 rgba(153, 168, 192, 0.07);
      transform: scale(1.1);
    }
  }
  &-settings {
    width: 250px;
    height: 100%;
    border-left: 1px solid #e5e9f2;
    & label {
      color: #475669;
      font-size: 12px;
    }
    & .ant-table.ant-table-small,
    & .ant-select-selector,
    & .ant-select-selection-placeholder,
    & .ant-select-selection-item,
    & .ant-radio-group label span {
      font-size: 12px;
    }
    & .ant-pro-form-list-action,
    & .ant-form-item {
      margin-bottom: 12px;
    }
    & .add-button {
      color: #475669;
      font-size: 12px;
      border-color: #e5e9f2;
      &:hover {
        color: #1890ff;
        border-color: #1890ff;
      }
    }
    &-notes {
      padding: 8px 16px;
      color: #748194;
      font-size: 12px;
      & b {
        padding: 0 4px;
      }
    }
  }
}

.ant-pro-card-extra:has(.table-element-toolbar-button) {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}

.table-element-toolbar-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  &.ant-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  & button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
  }
}

.card-mode {
  cursor: pointer;
  transition: all 0.3s ease-in-out 0s;
  transition-delay: 300ms;
  &:hover {
    box-shadow: rgba(153, 168, 192, 0.2) 0 9px 7px 0, 0 0 0 0.6px #e5e9f2;
    transform: perspective(1px) translateY(-2px);
  }
}

@keyframes enter {
  0% {
    transform: translateX(250px);
    opacity: 1;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes leave {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(250px);
    opacity: 1;
  }
}
